<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\BaseController;
use App\Http\Controllers\Controller;
use App\Models\Category;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;

class CategoryController extends BaseController
{
    /**
     * 获取分类
     * @return \Illuminate\Http\JsonResponse
     */
   public function getCateGory()
   {
       return $this->success(Category::all());
   }
}
